package com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
@ComponentScan({"com.service", "com.config", "com.action", "com.shiro", "com.app.v1","com.ws"})
@MapperScan({"com.dao"})
@ImportResource("classpath:spring-transaction.xml")
@ServletComponentScan(basePackages = {"com.config"})
@EnableScheduling
@EnableRedisHttpSession(redisNamespace = "school:spring:session")
public class MainBoot {
    // 独立运行模式
    public static void main(String[] args) throws InterruptedException {
        ApplicationContext applicationContext = SpringApplication.run(MainBoot.class);
    }

}
